package com.opages.transaction.message.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author daizhong.liu
 * @create 2021-11-02 9:03
 **/
@ConfigurationProperties("opages.message")
public class MessageProperties {
    private SenderCfg sender;

    public SenderCfg getSender() {
        return sender;
    }

    public void setSender(SenderCfg sender) {
        this.sender = sender;
    }

    public class SenderCfg {
        //第1次发送间隔时间...以此类推，/分钟
        private Integer oneTime = 1;
        private Integer twoTime = 2;
        private Integer threeTime = 5;
        private Integer fourTime = 10;
        private Integer fiveTime = 20;
        //最大发送次数
        private Integer maxTimes = 5;

        public Integer getOneTime() {
            return oneTime;
        }

        public void setOneTime(Integer oneTime) {
            this.oneTime = oneTime;
        }

        public Integer getTwoTime() {
            return twoTime;
        }

        public void setTwoTime(Integer twoTime) {
            this.twoTime = twoTime;
        }

        public Integer getThreeTime() {
            return threeTime;
        }

        public void setThreeTime(Integer threeTime) {
            this.threeTime = threeTime;
        }

        public Integer getFourTime() {
            return fourTime;
        }

        public void setFourTime(Integer fourTime) {
            this.fourTime = fourTime;
        }

        public Integer getFiveTime() {
            return fiveTime;
        }

        public void setFiveTime(Integer fiveTime) {
            this.fiveTime = fiveTime;
        }

        public Integer getMaxTimes() {
            return maxTimes;
        }

        public void setMaxTimes(Integer maxTimes) {
            this.maxTimes = maxTimes;
        }
    }
}
